package com.wing.cabinet.model.response;

import lombok.Data;

import java.util.List;

@Data
public class CabSortInventorySpaceVO implements Comparable<CabSortInventorySpaceVO>{

    private String cabCode;

    private Integer quantity;

    private List<CellInventorySpaceVO> spaceList;

    private List<StorageInventorySpaceVO> storageSpaceList;

    @Override
    public int compareTo(CabSortInventorySpaceVO o) {
        if(this.quantity>o.quantity){
            return -1;
        }else{
            return 1;
        }
    }
}
